// 用户
import request from '@/utils/request.js'
// 用户基本信息
export const userinfoAPI = () => {
  return request({
    url: '/v1_0/user'

  })
}

// 用户个人信息
export const userprofileAPI = () => {
  return request({
    url: '/v1_0/user/profile'

  })
}

// 更新头像
export const updataphotoAPI = (formobj) => {
  return request({
    url: '/v1_0/user/photo',
    method: 'PATCH',
    data: formobj
  })
}

// 更新昵称
export const updatenameAPI = ({ birthday, usename }) => {
  return request({
    url: '/v1_0/user/profile',
    method: 'PATCH',
    data: {
      birthday: birthday,
      name: usename
    }

  })
}
